package top.azusall.securitydemo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.azusall.model.pojo.Permission;
import top.azusall.model.pojo.UserPermission;

import java.util.List;

/**
 * @author houmo
 */
@Mapper
public interface UserPermissionMapper extends BaseMapper<UserPermission> {

    /**
     * 获取用户对应的权限
     *
     * @param userId
     * @return
     */
    List<Permission> getPermissionsByUserId(@Param("userId") Long userId);
}
